<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Livox SDK API: sdk_core/include/third_party/spdlog/spdlog/details/os.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="1.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Livox SDK API
   &#160;<span id="projectnumber">V2.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('os_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">os.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="common_8h_source.html">../common.h</a>&quot;</code><br />
<code>#include &lt;algorithm&gt;</code><br />
<code>#include &lt;chrono&gt;</code><br />
<code>#include &lt;cstdio&gt;</code><br />
<code>#include &lt;cstdlib&gt;</code><br />
<code>#include &lt;cstring&gt;</code><br />
<code>#include &lt;ctime&gt;</code><br />
<code>#include &lt;functional&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;sys/stat.h&gt;</code><br />
<code>#include &lt;sys/types.h&gt;</code><br />
<code>#include &lt;thread&gt;</code><br />
<code>#include &lt;fcntl.h&gt;</code><br />
<code>#include &lt;unistd.h&gt;</code><br />
</div>
<p><a href="os_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacespdlog"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog.html">spdlog</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespacespdlog_1_1details"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details.html">spdlog::details</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespacespdlog_1_1details_1_1os"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html">spdlog::details::os</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:af989845e24678c452b9222afdac95e7f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="os_8h.html#af989845e24678c452b9222afdac95e7f">__has_feature</a>(x)&#160;&#160;&#160;0</td></tr>
<tr class="separator:af989845e24678c452b9222afdac95e7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c16021694c04b9b7341a9348b6d8dd4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="os_8h.html#a3c16021694c04b9b7341a9348b6d8dd4">SPDLOG_EOL</a>&#160;&#160;&#160;&quot;\n&quot;</td></tr>
<tr class="separator:a3c16021694c04b9b7341a9348b6d8dd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63d60ea1c1a925d3db13864d37bd2da2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="os_8h.html#a63d60ea1c1a925d3db13864d37bd2da2">SPDLOG_FILENAME_T</a>(s)&#160;&#160;&#160;s</td></tr>
<tr class="separator:a63d60ea1c1a925d3db13864d37bd2da2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a0128efefe7b8bbf3b3ba58a1f7a309dd"><td class="memItemLeft" align="right" valign="top">spdlog::log_clock::time_point&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#a0128efefe7b8bbf3b3ba58a1f7a309dd">spdlog::details::os::now</a> () noexcept</td></tr>
<tr class="separator:a0128efefe7b8bbf3b3ba58a1f7a309dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ed2501e3a0bf17176ac848e0a67a148"><td class="memItemLeft" align="right" valign="top">std::tm&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#a9ed2501e3a0bf17176ac848e0a67a148">spdlog::details::os::localtime</a> (const std::time_t &amp;time_tt) noexcept</td></tr>
<tr class="separator:a9ed2501e3a0bf17176ac848e0a67a148"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8b1e6155c2975abfd696ffb5fd9e7dd"><td class="memItemLeft" align="right" valign="top">std::tm&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#af8b1e6155c2975abfd696ffb5fd9e7dd">spdlog::details::os::localtime</a> () noexcept</td></tr>
<tr class="separator:af8b1e6155c2975abfd696ffb5fd9e7dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5520aa99f4b24d934f47884c718af8b5"><td class="memItemLeft" align="right" valign="top">std::tm&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#a5520aa99f4b24d934f47884c718af8b5">spdlog::details::os::gmtime</a> (const std::time_t &amp;time_tt) noexcept</td></tr>
<tr class="separator:a5520aa99f4b24d934f47884c718af8b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab96032bfa50f2c6a269f90a89e03051b"><td class="memItemLeft" align="right" valign="top">std::tm&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#ab96032bfa50f2c6a269f90a89e03051b">spdlog::details::os::gmtime</a> () noexcept</td></tr>
<tr class="separator:ab96032bfa50f2c6a269f90a89e03051b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58e68538bb3667c56f3623bf047093d6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#a58e68538bb3667c56f3623bf047093d6">spdlog::details::os::prevent_child_fd</a> (FILE *f)</td></tr>
<tr class="separator:a58e68538bb3667c56f3623bf047093d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2d11a0b892e2f0cb3c6beba4c659a47"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#af2d11a0b892e2f0cb3c6beba4c659a47">spdlog::details::os::fopen_s</a> (FILE **fp, const filename_t &amp;filename, const filename_t &amp;mode)</td></tr>
<tr class="separator:af2d11a0b892e2f0cb3c6beba4c659a47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6026b23c139f733601c1a5fa9f4d555f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#a6026b23c139f733601c1a5fa9f4d555f">spdlog::details::os::remove</a> (const filename_t &amp;filename) noexcept</td></tr>
<tr class="separator:a6026b23c139f733601c1a5fa9f4d555f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8603bb3ec0aab28cf4fd6a0ef7cc78b9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#a8603bb3ec0aab28cf4fd6a0ef7cc78b9">spdlog::details::os::rename</a> (const filename_t &amp;filename1, const filename_t &amp;filename2) noexcept</td></tr>
<tr class="separator:a8603bb3ec0aab28cf4fd6a0ef7cc78b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd466bafef75b9792e0ca62e7fdd8dc1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#afd466bafef75b9792e0ca62e7fdd8dc1">spdlog::details::os::file_exists</a> (const filename_t &amp;filename) noexcept</td></tr>
<tr class="separator:afd466bafef75b9792e0ca62e7fdd8dc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d2fb5a293e8515f651288992d5443cc"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#a6d2fb5a293e8515f651288992d5443cc">spdlog::details::os::filesize</a> (FILE *f)</td></tr>
<tr class="separator:a6d2fb5a293e8515f651288992d5443cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dce662c3a4ea0b6e95468272ec37047"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#a6dce662c3a4ea0b6e95468272ec37047">spdlog::details::os::utc_minutes_offset</a> (const std::tm &amp;tm=details::os::localtime())</td></tr>
<tr class="separator:a6dce662c3a4ea0b6e95468272ec37047"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab397aa6b937e5d4624878dfd2e3a0083"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#ab397aa6b937e5d4624878dfd2e3a0083">spdlog::details::os::_thread_id</a> () noexcept</td></tr>
<tr class="separator:ab397aa6b937e5d4624878dfd2e3a0083"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74d5902dc227aa662ade3eac75d03c81"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#a74d5902dc227aa662ade3eac75d03c81">spdlog::details::os::thread_id</a> () noexcept</td></tr>
<tr class="separator:a74d5902dc227aa662ade3eac75d03c81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56a474fcf965264674346ffdefac0759"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#a56a474fcf965264674346ffdefac0759">spdlog::details::os::sleep_for_millis</a> (int milliseconds) noexcept</td></tr>
<tr class="separator:a56a474fcf965264674346ffdefac0759"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7c0d6af1f3f652f23e57f057217b9a7"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#ac7c0d6af1f3f652f23e57f057217b9a7">spdlog::details::os::filename_to_str</a> (const filename_t &amp;filename)</td></tr>
<tr class="separator:ac7c0d6af1f3f652f23e57f057217b9a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa5e2f0096ec0aa63c2d20143cb18b17"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#afa5e2f0096ec0aa63c2d20143cb18b17">spdlog::details::os::pid</a> ()</td></tr>
<tr class="separator:afa5e2f0096ec0aa63c2d20143cb18b17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af559cb70eda0e8af7314a3b10136c0d8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#af559cb70eda0e8af7314a3b10136c0d8">spdlog::details::os::is_color_terminal</a> () noexcept</td></tr>
<tr class="separator:af559cb70eda0e8af7314a3b10136c0d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c021ae34fade1511cde10551eb5fb63"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#a9c021ae34fade1511cde10551eb5fb63">spdlog::details::os::in_terminal</a> (FILE *file) noexcept</td></tr>
<tr class="separator:a9c021ae34fade1511cde10551eb5fb63"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a1db4824c9cd5bc09a5f3dd7f248f1c51"><td class="memItemLeft" align="right" valign="top">static constexpr const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#a1db4824c9cd5bc09a5f3dd7f248f1c51">spdlog::details::os::default_eol</a> = &quot;\n&quot;</td></tr>
<tr class="separator:a1db4824c9cd5bc09a5f3dd7f248f1c51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd9823831f24054f4fd6d734b90b7bc4"><td class="memItemLeft" align="right" valign="top">static constexpr const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacespdlog_1_1details_1_1os.html#afd9823831f24054f4fd6d734b90b7bc4">spdlog::details::os::folder_sep</a> = '/'</td></tr>
<tr class="separator:afd9823831f24054f4fd6d734b90b7bc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="af989845e24678c452b9222afdac95e7f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __has_feature</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="os_8h_source.html#l00053">53</a> of file <a class="el" href="os_8h_source.html">os.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3c16021694c04b9b7341a9348b6d8dd4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SPDLOG_EOL&#160;&#160;&#160;&quot;\n&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="os_8h_source.html#l00116">116</a> of file <a class="el" href="os_8h_source.html">os.h</a>.</p>

</div>
</div>
<a class="anchor" id="a63d60ea1c1a925d3db13864d37bd2da2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SPDLOG_FILENAME_T</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">s</td><td>)</td>
          <td>&#160;&#160;&#160;s</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="os_8h_source.html#l00369">369</a> of file <a class="el" href="os_8h_source.html">os.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_5f1136fe404e0a548faf586fae339a6a.html">sdk_core</a></li><li class="navelem"><a class="el" href="dir_fef6b6f1028f30fedf17225feaaa02fe.html">include</a></li><li class="navelem"><a class="el" href="dir_7bb3e31efd6b819bbb0704cee4a66d41.html">third_party</a></li><li class="navelem"><a class="el" href="dir_cf58c3a45797022668a1e269b5315a33.html">spdlog</a></li><li class="navelem"><a class="el" href="dir_248a80cf6760c7a1ab13394a1c16f7b2.html">spdlog</a></li><li class="navelem"><a class="el" href="dir_7d093cd833acfccb787639923feedd9d.html">details</a></li><li class="navelem"><a class="el" href="os_8h.html">os.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
